<template>
  <div>
    <van-swipe :autoplay="3000">
      <van-swipe-item v-for="(image, index) in slides" :key="index">
        <img v-lazy="image" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
import {SwipeItem, Swipe} from 'vant'
export default {
  name: 'slides',
  props: ['slides'],
  components: {
    [Swipe.name]:Swipe,
    [SwipeItem.name]:SwipeItem
  }
}
</script>

<style>
  .van-swipe-item img{
    width:100%;
  }
</style>